const actions = {
  setFileName: ({ commit }, fileName) => {
    return commit('SET_FILENAME', fileName)
  },
  setMenuVisible: ({ commit }, menuVisible) => {
    return commit('SET_MENUVISIBLE', menuVisible)
  },
  setSettingVisible: ({ commit }, settingVisible) => {
    return commit('SET_SETTINGVISIBLE', settingVisible)
  },
  setDefaultFontSize: ({ commit }, defaultFontSize) => {
    return commit('SET_DEFAULTFONTSIZE', defaultFontSize)
  },
  'setDefaultFontFamily' ({ commit }, defaultFontFamily) {
    return commit('SET_DEFAULTFONTFAMILY', defaultFontFamily)
  },
  'setFontFamilyVisible' ({ commit }, fontFamilyVisible) {
    return commit('SET_FONTFAMILYVISIBLE', fontFamilyVisible)
  },
  'setDefaultTheme' ({ commit }, defaultTheme) {
    return commit('SET_DEFAULTTHEME', defaultTheme)
  },
  'setBookAvailable' ({ commit }, bookAvailable) {
    return commit('SET_BOOKAVAILABLE', bookAvailable)
  },
  'setProgress' ({ commit }, progress) {
    return commit('SET_PROGRESS', progress)
  },
  'setSection' ({ commit }, section) {
    return commit('SET_SECTION', section)
  },
  'setIsPaginating' ({ commit }, isPaginating) {
    return commit('SET_ISPAGINATING', isPaginating)
  },
  'setCurrentBook' ({ commit }, currentBook) {
    return commit('SET_CURRENTBOOK', currentBook)
  },
  'setNavigation' ({ commit }, navigation) {
    return commit('SET_NAVIGATION', navigation)
  },
  'setCover' ({ commit }, cover) {
    return commit('SET_COVER', cover)
  },
  'setMetadata' ({ commit }, metadata) {
    return commit('SET_METADATA', metadata)
  },
  'setPaginate' ({ commit }, paginate) {
    return commit('SET_PAGINATE', paginate)
  },
  'setPageList' ({ commit }, pageList) {
    return commit('SET_PAGELIST', pageList)
  },
  'setOffsetY' ({ commit }, offsetY) {
    return commit('SET_OFFSETY', offsetY)
  },
  'setIsBookMark' ({ commit }, isBookmark) {
    return commit('SET_ISBOOKMARK', isBookmark)
  }
}

export default actions
